home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16316 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
10% dexvert Text File (text/txt) fallback Supported
100% file ISO-8859 text default (weak)
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 61 72 74 65 6d 69 73 2e | 73 74 6f 2e 66 64 61 74 |artemis.|sto.fdat|
|00000030| 61 2e 73 65 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |a.se!new|s.From: |
|00000040| 4e 69 6b 6c 61 73 20 4d | 65 6c 6c 69 6e 20 3c 6e |Niklas M|ellin <n|
|00000050| 69 6b 6c 61 73 2e 6d 65 | 6c 6c 69 6e 40 73 74 6f |iklas.me|llin@sto|
|00000060| 2e 66 64 61 74 61 2e 73 | 65 3e 0a 53 75 62 6a 65 |.fdata.s|e>.Subje|
|00000070| 63 74 3a 20 52 65 3a 20 | 57 68 61 74 20 61 72 65 |ct: Re: |What are|
|00000080| 20 74 68 65 20 64 69 66 | 66 65 72 65 6e 63 65 73 | the dif|ferences|
|00000090| 20 62 65 74 77 65 65 6e | 20 73 74 72 75 63 74 75 | between| structu|
|000000a0| 72 65 73 20 61 6e 64 20 | 63 6c 61 73 73 65 73 20 |res and |classes |
|000000b0| 69 6e 20 43 2b 2b 20 3f | 0a 53 65 6e 64 65 72 3a |in C++ ?|.Sender:|
|000000c0| 20 6e 65 77 73 40 61 72 | 74 65 6d 69 73 2e 73 74 | news@ar|temis.st|
|000000d0| 6f 2e 66 64 61 74 61 2e | 73 65 20 28 55 73 65 4e |o.fdata.|se (UseN|
|000000e0| 65 74 20 4e 65 74 4e 65 | 77 73 29 0a 4d 65 73 73 |et NetNe|ws).Mess|
|000000f0| 61 67 65 2d 49 44 3a 20 | 3c 33 31 36 42 37 35 35 |age-ID: |<316B755|
|00000100| 34 2e 41 46 45 40 73 74 | 6f 2e 66 64 61 74 61 2e |4.AFE@st|o.fdata.|
|00000110| 73 65 3e 0a 44 61 74 65 | 3a 20 57 65 64 2c 20 31 |se>.Date|: Wed, 1|
|00000120| 30 20 41 70 72 20 31 39 | 39 36 20 30 38 3a 34 36 |0 Apr 19|96 08:46|
|00000130| 3a 31 32 20 47 4d 54 0a | 54 6f 3a 20 4d 69 63 68 |:12 GMT.|To: Mich|
|00000140| 61 65 6c 20 46 75 72 6d | 61 6e 20 3c 45 4e 47 52 |ael Furm|an <ENGR|
|00000150| 40 47 53 53 49 2e 4d 56 | 2e 43 4f 4d 3e 0a 43 6f |@GSSI.MV|.COM>.Co|
|00000160| 6e 74 65 6e 74 2d 54 72 | 61 6e 73 66 65 72 2d 45 |ntent-Tr|ansfer-E|
|00000170| 6e 63 6f 64 69 6e 67 3a | 20 37 62 69 74 0a 43 6f |ncoding:| 7bit.Co|
|00000180| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|00000190| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|000001a0| 75 73 2d 61 73 63 69 69 | 0a 52 65 66 65 72 65 6e |us-ascii|.Referen|
|000001b0| 63 65 73 3a 20 3c 34 6b | 35 6d 36 35 24 61 76 40 |ces: <4k|5m65$av@|
|000001c0| 68 70 73 63 69 74 2e 73 | 63 2e 68 70 2e 63 6f 6d |hpscit.s|c.hp.com|
|000001d0| 3e 20 3c 33 31 36 41 37 | 36 33 39 2e 33 33 38 33 |> <316A7|639.3383|
|000001e0| 40 73 74 6f 2e 66 64 61 | 74 61 2e 73 65 3e 20 3c |@sto.fda|ta.se> <|
|000001f0| 44 70 4d 33 37 46 2e 44 | 7a 70 40 6d 76 2e 6d 76 |DpM37F.D|zp@mv.mv|
|00000200| 2e 63 6f 6d 3e 0a 4d 69 | 6d 65 2d 56 65 72 73 69 |.com>.Mi|me-Versi|
|00000210| 6f 6e 3a 20 31 2e 30 0a | 58 2d 4d 61 69 6c 65 72 |on: 1.0.|X-Mailer|
|00000220| 3a 20 4d 6f 7a 69 6c 6c | 61 20 32 2e 30 20 28 57 |: Mozill|a 2.0 (W|
|00000230| 69 6e 4e 54 3b 20 49 29 | 0a 4f 72 67 61 6e 69 7a |inNT; I)|.Organiz|
|00000240| 61 74 69 6f 6e 3a 20 57 | 4d 2d 64 61 74 61 20 46 |ation: W|M-data F|
|00000250| f6 72 73 76 61 72 73 64 | 61 74 61 20 41 42 2c 20 |.rsvarsd|ata AB, |
|00000260| 53 77 65 64 65 6e 0a 0a | 4d 69 63 68 61 65 6c 20 |Sweden..|Michael |
|00000270| 46 75 72 6d 61 6e 20 77 | 72 6f 74 65 3a 0a 3e 20 |Furman w|rote:.> |
|00000280| 0a 3e 20 49 6e 20 61 72 | 74 69 63 6c 65 20 3c 33 |.> In ar|ticle <3|
|00000290| 31 36 41 37 36 33 39 2e | 33 33 38 33 40 73 74 6f |16A7639.|3383@sto|
|000002a0| 2e 66 64 61 74 61 2e 73 | 65 3e 2c 20 6e 69 6b 6c |.fdata.s|e>, nikl|
|000002b0| 61 73 2e 6d 65 6c 6c 69 | 6e 40 73 74 6f 2e 66 64 |as.melli|n@sto.fd|
|000002c0| 61 74 61 2e 73 65 0a 3e | 20 73 61 79 73 2e 2e 2e |ata.se.>| says...|
|000002d0| 0a 3e 20 3e 20 20 20 5b | 2e 2e 2e 2e 5d 0a 3e 20 |.> > [|....].> |
|000002e0| 3e 54 68 69 73 20 69 73 | 20 61 6e 20 69 6e 74 65 |>This is| an inte|
|000002f0| 72 65 73 74 69 6e 67 20 | 74 68 72 65 61 64 2e 20 |resting |thread. |
|00000300| 49 20 68 61 76 65 20 73 | 6f 20 66 61 72 20 72 65 |I have s|o far re|
|00000310| 61 64 20 31 31 20 61 6e | 73 77 65 72 73 20 74 6f |ad 11 an|swers to|
|00000320| 20 74 68 65 20 6f 72 69 | 67 69 6e 61 6c 0a 3e 20 | the ori|ginal.> |
|00000330| 3e 71 75 65 73 74 69 6f | 6e 2c 20 61 6e 64 20 6e |>questio|n, and n|
|00000340| 6f 62 6f 64 79 20 63 61 | 6d 65 20 75 70 20 77 69 |obody ca|me up wi|
|00000350| 74 68 20 74 68 65 20 63 | 6f 72 72 65 63 74 20 61 |th the c|orrect a|
|00000360| 6e 73 77 65 72 2c 20 65 | 76 65 6e 20 74 68 6f 75 |nswer, e|ven thou|
|00000370| 67 68 20 69 74 20 69 73 | 0a 3e 20 0a 3e 20 59 6f |gh it is|.> .> Yo|
|00000380| 75 20 6a 75 73 74 20 64 | 69 64 20 6e 6f 74 20 72 |u just d|id not r|
|00000390| 65 61 64 20 63 6f 72 72 | 65 63 74 6c 79 2c 20 74 |ead corr|ectly, t|
|000003a0| 72 79 20 74 6f 20 72 65 | 72 65 61 64 20 74 68 65 |ry to re|read the|
|000003b0| 6d 20 2d 20 6d 6f 73 74 | 20 6f 66 20 74 68 65 6d |m - most| of them|
|000003c0| 0a 3e 20 63 6f 72 72 65 | 63 74 2e 0a 0a 49 20 64 |.> corre|ct...I d|
|000003d0| 69 64 20 72 65 72 65 61 | 64 20 74 68 65 6d 20 61 |id rerea|d them a|
|000003e0| 6e 64 20 49 20 63 61 6e | 20 73 74 69 6c 6c 20 6e |nd I can| still n|
|000003f0| 6f 74 20 66 69 6e 64 20 | 61 6e 79 20 6f 6e 65 20 |ot find |any one |
|00000400| 62 75 74 20 6d 65 20 63 | 6f 6d 69 6e 67 20 75 70 |but me c|oming up|
|00000410| 20 77 69 74 68 20 61 0a | 63 6f 6d 70 6c 65 74 65 | with a.|complete|
|00000420| 20 61 6e 64 20 63 6f 72 | 72 65 63 74 20 61 6e 73 | and cor|rect ans|
|00000430| 77 65 72 2e 20 52 61 67 | 68 75 76 65 65 72 61 20 |wer. Rag|huveera |
|00000440| 52 61 76 69 6e 75 74 61 | 6c 61 20 61 73 6b 65 64 |Ravinuta|la asked|
|00000450| 20 61 62 6f 75 74 20 74 | 68 65 0a 64 69 66 66 65 | about t|he.diffe|
|00000460| 72 65 6e 63 65 73 20 62 | 65 74 77 65 65 6e 20 73 |rences b|etween s|
|00000470| 74 72 75 63 74 73 20 61 | 6e 64 20 63 6c 61 73 73 |tructs a|nd class|
|00000480| 65 73 2c 20 61 6e 64 20 | 61 20 63 6f 72 72 65 63 |es, and |a correc|
|00000490| 74 20 61 6e 73 77 65 72 | 20 69 73 20 74 68 61 74 |t answer| is that|
|000004a0| 0a 74 68 65 20 64 65 66 | 61 75 6c 74 20 61 63 63 |.the def|ault acc|
|000004b0| 65 73 73 20 6f 66 20 6d | 65 6d 62 65 72 73 20 41 |ess of m|embers A|
|000004c0| 4e 44 20 42 41 53 45 20 | 43 4c 41 53 53 45 53 20 |ND BASE |CLASSES |
|000004d0| 69 73 20 70 75 62 6c 69 | 63 20 69 6e 20 73 74 72 |is publi|c in str|
|000004e0| 75 63 74 73 20 61 6e 64 | 0a 70 72 69 76 61 74 65 |ucts and|.private|
|000004f0| 20 69 6e 20 63 6c 61 73 | 73 65 73 2e 20 0a 0a 4e | in clas|ses. ..N|
|00000500| 6f 20 6f 74 68 65 72 20 | 72 65 70 6c 79 20 73 74 |o other |reply st|
|00000510| 61 74 65 64 20 74 68 61 | 74 20 61 6c 73 6f 20 74 |ated tha|t also t|
|00000520| 68 65 20 62 61 73 65 20 | 63 6c 61 73 73 20 61 63 |he base |class ac|
|00000530| 63 65 73 73 20 69 73 20 | 70 75 62 6c 69 63 2e 20 |cess is |public. |
|00000540| 41 6e 64 20 6d 6f 73 74 | 20 0a 6f 66 20 74 68 65 |And most| .of the|
|00000550| 6d 20 28 69 6e 63 6c 75 | 64 69 6e 67 20 79 6f 75 |m (inclu|ding you|
|00000560| 72 73 29 20 65 76 65 6e | 20 73 61 69 64 20 74 68 |rs) even| said th|
|00000570| 61 74 20 74 68 65 20 4f | 4e 4c 59 20 64 69 66 66 |at the O|NLY diff|
|00000580| 65 72 65 6e 63 65 20 69 | 73 20 74 68 65 20 64 65 |erence i|s the de|
|00000590| 66 61 75 6c 74 20 0a 61 | 63 63 65 73 73 20 6f 66 |fault .a|ccess of|
|000005a0| 20 74 68 65 20 6d 65 6d | 62 65 72 73 2c 20 77 68 | the mem|bers, wh|
|000005b0| 69 63 68 20 69 73 20 6a | 75 73 74 20 77 72 6f 6e |ich is j|ust wron|
|000005c0| 67 2e 20 0a 0a 54 68 65 | 72 65 20 77 61 73 20 6f |g. ..The|re was o|
|000005d0| 6e 65 20 72 65 70 6c 79 | 20 73 74 61 74 69 6e 67 |ne reply| stating|
|000005e0| 20 74 68 61 74 20 69 6e | 20 73 74 72 75 63 74 73 | that in| structs|
|000005f0| 20 65 76 65 72 79 74 68 | 69 6e 67 20 69 73 20 70 | everyth|ing is p|
|00000600| 75 62 6c 69 63 20 62 79 | 20 0a 64 65 66 61 75 6c |ublic by| .defaul|
|00000610| 74 20 61 6e 64 20 69 6e | 20 63 6c 61 73 73 65 73 |t and in| classes|
|00000620| 20 65 76 65 72 79 74 68 | 69 6e 67 20 69 73 20 70 | everyth|ing is p|
|00000630| 72 69 76 61 74 65 20 62 | 79 20 64 65 66 61 75 6c |rivate b|y defaul|
|00000640| 74 2c 20 77 68 69 63 68 | 20 69 73 20 0a 74 65 63 |t, which| is .tec|
|00000650| 68 6e 69 63 61 6c 6c 79 | 20 63 6f 72 72 65 63 74 |hnically| correct|
|00000660| 2c 20 62 75 74 20 6e 6f | 74 20 76 65 72 79 20 65 |, but no|t very e|
|00000670| 6e 6c 69 67 68 74 6e 69 | 6e 67 2e 0a 0a 2d 2d 2d |nlightni|ng...---|
|00000680| 0a 4e 69 6b 6c 61 73 20 | 4d 65 6c 6c 69 6e 0a |.Niklas |Mellin. |
+--------+-------------------------+-------------------------+--------+--------+